//
//  OssManager.h
//  AliyunOSSiOS
//
//  Created by 243280864@qq.com on 2021/2/16.
//

#import <Foundation/Foundation.h>
#import <AliyunOSSiOS/OSSService.h>


NS_ASSUME_NONNULL_BEGIN

@interface OssManager : NSObject
{
    OSSClient *_client;
    NSString *_bucketName;
}

- (void)initClient:(NSString *)endPoint andStsServer:(NSString *)stsServer andNeedLog:(BOOL)needLog andRetryTime:(int)retryTime andRequestTimeout:(int)requestTimeout andSocketTimeout:(int)socketTimeOut;
//- (void)bindName:(NSString *)bucketName;
- (NSDictionary *)uploadFileByPath:(NSString *)filePath andName:(NSString *)objName bucketName:(NSString *)bucketName progress:(void(^)(int64_t bytesSent, int64_t totalBytesSent, int64_t totalBytesExpectedToSend))progress taskBlock:(id(^)(OSSTask *task))taskBlock;

- (NSString *)getPublicURLWithObjectName:(NSString *)objectName;

- (NSString *)getConstraiURLWithObjectName:(NSString *)objectName isSign:(BOOL)isSign bucketName:(NSString *)bucketName;

@end

NS_ASSUME_NONNULL_END
